raar.agent.process.sensor
Class RARegionSensor
java.lang.Object
raar.agent.process.RAProcess
raar.agent.process.sensor.RASensor
raar.agent.process.sensor.RARegionSensor
- All Implemented Interfaces:
- java.io.Serializable, RAAgentDependentProcess
- Direct Known Subclasses:
- RARegionSensor_Pie
public abstract class RARegionSensor
- extends RASensor
- implements java.io.Serializable
A sensor with a certain region of perception (usually a cone within which
the sensor sees something).
- See Also:
- Serialized Form
|
Method Summary |
abstract java.awt.Shape |
getRegion(double currentX,
double currentY,
double currentA)
Give the sensor region, given that the sensor's origin is at the coördinate (x,y)
and the rotation of the agent on which the sensor is placed is a.. |
void |
run()
Run the sensor. |
| Methods inherited from class raar.agent.process.sensor.RASensor |
acceptsInput, dumpRegisters, execute, explain, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, removeReferenceToAgent, set, setAgent, setOutput, setReferenceToAgent, setSourceCode, suppliesOutput, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RARegionSensor
public RARegionSensor(java.lang.String outputName,
RAAgent agent)
- Construct the sensor.
run
public final void run()
throws RAException
- Run the sensor.
- Specified by:
run in class RASensor
- Throws:
RAException
getRegion
public abstract java.awt.Shape getRegion(double currentX,
double currentY,
double currentA)
- Give the sensor region, given that the sensor's origin is at the coördinate (x,y)
and the rotation of the agent on which the sensor is placed is a..